package com.hongxun.budget.ui.fragment.sg;

import android.widget.TextView;

import com.hongxun.budget.R;
import com.hongxun.budget.ui.fragment.BaseFragment;
import com.hongxun.budget.utils.SgDBUtils;
import com.hongxun.budget.utils.SPUtils;
import com.hongxun.budget.utils.SgStrKey;
import com.hongxun.greenentity.sg.CGroundEntity;

import butterknife.BindView;

/**
 * 隐蔽工程信息详情：接地体
 */
public class BrowseGroundInfo extends BaseFragment {
    @BindView(R.id.et21)
    TextView et21;
    @BindView(R.id.et22)
    TextView et22;
    @BindView(R.id.et23)
    TextView et23;
    @BindView(R.id.et24)
    TextView et24;
    @BindView(R.id.et25)
    TextView et25;
    @BindView(R.id.et26)
    TextView et26;
    @BindView(R.id.et27)
    TextView et27;
    @BindView(R.id.et28)
    TextView et28;
    @BindView(R.id.et29)
    TextView et29;

    public BrowseGroundInfo() {
    }

    @Override
    public  int getLayoutId() {
        return R.layout.sg_fragment_browsegroundinfo;
    }

    @Override
    public  void initView() {
        CGroundEntity groundEntity = SgDBUtils.getCGround(String.valueOf(SPUtils.get(context, SgStrKey.uuidxx, "")));
        et21.setText(groundEntity.getGFormat());
        et22.setText(groundEntity.getGSoil());
        et23.setText(groundEntity.getGMass());
        et24.setText(groundEntity.getGDam());
        et25.setText(groundEntity.getGLength());
        et26.setText(groundEntity.getGWidth());
        et27.setText(groundEntity.getGDepth());
        et28.setText(groundEntity.getGResistance());
        et29.setText(groundEntity.getGResult());
    }

}
